import request from "@/plugins/request";

var pre = "/inteCater/foodBeverages/weekCookbook";

if (process.env.NODE_ENV !== "development") {
  pre = '/api/sa/smar-catering' + pre;
}

// 根据当前登录用户获取能查看的食堂信息
export function getCanteenInfoByLoginUser() {
  return request({
    url: `${pre}/getCanteenInfoByLoginUser`,
    method: "get",
  });
}

// 获取菜品和推荐信息
export function getDishInfoAndRecommend(data) {
  return request({
    url: `${pre}/getDishInfoAndRecommend`,
    method: "post",
    data,
  });
}

// 获取一周菜谱信息
export function getWeekCookbook(data) {
  return request({
    url: `${pre}/getWeekCookbook`,
    method: "post",
    data,
  });
}

// 获取餐次信息
export function getMealsTypeInfo(data) {
  return request({
    url: `${pre}/getMealsTypeInfo`,
    method: "post",
    data,
  });
}